<!doctype html>
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>server documentation</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
	      <link rel="stylesheet" href="../styles/style.css">
        <link rel="stylesheet" href="../styles/&#x27;Postmark&#x27;.css">
    </head>
    <body>

        <div class="navbar navbar-default navbar-fixed-top visible-xs">
            <a href="../" class="navbar-brand">server documentation</a>
            <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
        </div>

        <div class="xs-menu menu" id="mobile-menu">
                <div id="book-search-input" role="search"><input type="text" placeholder="请输入查询关键字"></div>            <compodoc-menu></compodoc-menu>
        </div>

        <div class="container-fluid main">
           <div class="row main">
               <div class="hidden-xs menu">
                   <compodoc-menu mode="normal"></compodoc-menu>
               </div>
               <!-- START CONTENT -->
               <div class="content class">
                   <div class="content-data">











<ol class="breadcrumb">
  <li>类列表</li>
  <li>PartyMember</li>
</ol>

<ul class="nav nav-tabs" role="tablist">
        <li class="active">
            <a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
        </li>
        <li >
            <a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
        </li>
</ul>

<div class="tab-content">
    <div class="tab-pane fade active in" id="c-info">
        <p class="comment">
            <h3>文件</h3>
        </p>
        <p class="comment">
            <code>libs/db/src/entity/party-member.entity.ts</code>
        </p>


            <p class="comment">
                <h3>继承</h3>
            </p>
            <p class="comment">
                        <code><a href="../classes/BaseEntity.html" target="_self" >BaseEntity</a></code>
            </p>



            <section>
    <h3 id="index">索引</h3>
    <table class="table table-sm table-bordered index-table">
        <tbody>
                <tr>
                    <td class="col-md-4">
                        <h6><b>属性列表</b></h6>
                    </td>
                </tr>
                <tr>
                    <td class="col-md-4">
                        <ul class="index-list">
                            <li>
                                <a href="#duties">duties</a>
                            </li>
                            <li>
                                <a href="#education">education</a>
                            </li>
                            <li>
                                    <span class="modifier">可选的</span>
                                <a href="#id">id</a>
                            </li>
                            <li>
                                <a href="#image">image</a>
                            </li>
                            <li>
                                <a href="#lnauguralAddress">lnauguralAddress</a>
                            </li>
                            <li>
                                <a href="#partyOrganization">partyOrganization</a>
                            </li>
                            <li>
                                <a href="#periodOfActivists">periodOfActivists</a>
                            </li>
                            <li>
                                <a href="#periodOfDevelopmentObject">periodOfDevelopmentObject</a>
                            </li>
                            <li>
                                    <span class="modifier">可选的</span>
                                <a href="#periodOfPartyMember">periodOfPartyMember</a>
                            </li>
                            <li>
                                <a href="#periodOfProbationaryMember">periodOfProbationaryMember</a>
                            </li>
                            <li>
                                <a href="#status">status</a>
                            </li>
                            <li>
                                <a href="#village">village</a>
                            </li>
                            <li>
                                <a href="#villagerInfo">villagerInfo</a>
                            </li>
                            <li>
                                    <span class="modifier">Public</span>
                                <a href="#createdAt">createdAt</a>
                            </li>
                            <li>
                                    <span class="modifier">Public</span>
                                <a href="#deleteAt">deleteAt</a>
                            </li>
                            <li>
                                    <span class="modifier">Public</span>
                                <a href="#updatedAt">updatedAt</a>
                            </li>
                        </ul>
                    </td>
                </tr>






        </tbody>
    </table>
</section>


            <section>
    
        <h3 id="inputs">
            属性列表
        </h3>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="duties"></a>
                        <span class="name">
                            <b>
                            duties</b>
                            <a href="#duties"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;职务&#x27;, description: &#x27;职务&#x27;, required: true})<br />@IsString({always: true})<br />@IsOptional({always: true})<br />@Column({nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="92" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:92</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="education"></a>
                        <span class="name">
                            <b>
                            education</b>
                            <a href="#education"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="../miscellaneous/enumerations.html#EduEnum" target="_self" >EduEnum</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;文化程度&#x27;, description: &#x27;文化程度&#x27;, required: false, type: Number})<br />@IsNumber({}, {always: true})<br />@IsOptional({always: true})<br />@Column({nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="117" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:117</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="id"></a>
                        <span class="name">
                            <b>
                                <span class="modifier">可选的</span>
                            id</b>
                            <a href="#id"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({description: &#x27;党员主键&#x27;, required: false})<br />@PrimaryGeneratedColumn()<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="30" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:30</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="image"></a>
                        <span class="name">
                            <b>
                            image</b>
                            <a href="#image"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;照片&#x27;, description: &#x27;照片&#x27;, required: true})<br />@IsString({always: true})<br />@Column({type: &#x27;text&#x27;, nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="174" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:174</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="lnauguralAddress"></a>
                        <span class="name">
                            <b>
                            lnauguralAddress</b>
                            <a href="#lnauguralAddress"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;就职单位&#x27;, description: &#x27;就职单位&#x27;, required: true})<br />@IsString({always: true})<br />@IsOptional({always: true})<br />@Column({nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="104" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:104</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="partyOrganization"></a>
                        <span class="name">
                            <b>
                            partyOrganization</b>
                            <a href="#partyOrganization"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;党组织&#x27;, description: &#x27;党组织&#x27;, required: true})<br />@IsString({always: true})<br />@Column()<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="61" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:61</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="periodOfActivists"></a>
                        <span class="name">
                            <b>
                            periodOfActivists</b>
                            <a href="#periodOfActivists"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;积极分子时间段&#x27;, description: &#x27;积极分子时间段&#x27;, required: true})<br />@IsString({always: true})<br />@Column()<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="126" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:126</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="periodOfDevelopmentObject"></a>
                        <span class="name">
                            <b>
                            periodOfDevelopmentObject</b>
                            <a href="#periodOfDevelopmentObject"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;发展对象时间段&#x27;, description: &#x27;发展对象时间段&#x27;, required: true})<br />@IsString({always: true})<br />@IsOptional({always: true})<br />@Column({nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="138" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:138</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="periodOfPartyMember"></a>
                        <span class="name">
                            <b>
                                <span class="modifier">可选的</span>
                            periodOfPartyMember</b>
                            <a href="#periodOfPartyMember"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;正式党员时间段&#x27;, description: &#x27;正式党员时间段&#x27;, required: true})<br />@IsString({always: true})<br />@IsOptional({always: true})<br />@Column({nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="162" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:162</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="periodOfProbationaryMember"></a>
                        <span class="name">
                            <b>
                            periodOfProbationaryMember</b>
                            <a href="#periodOfProbationaryMember"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: &#x27;预备党员时间段&#x27;, description: &#x27;预备党员时间段&#x27;, required: true})<br />@IsString({always: true})<br />@IsOptional({always: true})<br />@Column({nullable: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="150" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:150</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="status"></a>
                        <span class="name">
                            <b>
                            status</b>
                            <a href="#status"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="../miscellaneous/enumerations.html#PoliticalStatusEnum" target="_self" >PoliticalStatusEnum</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: 1, description: &#x27;身份状态&#x27;, required: true, type: Number})<br />@IsNumber({}, {always: true})<br />@Column()<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="80" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:80</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="village"></a>
                        <span class="name">
                            <b>
                            village</b>
                            <a href="#village"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="../classes/Village.html" target="_self" >Number | Village</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: 1, description: &#x27;所属村&#x27;, required: true, oneOf: undefined})<br />@ManyToOne(undefined, undefined, {cascade: true})<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="52" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:52</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="villagerInfo"></a>
                        <span class="name">
                            <b>
                            villagerInfo</b>
                            <a href="#villagerInfo"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="../classes/VillagerInfo.html" target="_self" >VillagerInfo</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @ApiProperty({example: 1, description: &#x27;村民信息&#x27;, required: true})<br />@ValidateNested({always: true})<br />@Column(undefined)<br />
                            </code>
                        </td>
                    </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在 <a href="" data-line="70" class="link-to-prism">libs/db/src/entity/party-member.entity.ts:70</a></div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="createdAt"></a>
                        <span class="name">
                            <b>
                                <span class="modifier">Public</span>
                            createdAt</b>
                            <a href="#createdAt"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank" >Date</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @CreateDateColumn({type: &#x27;timestamp&#x27;})<br />
                            </code>
                        </td>
                    </tr>
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-line">继承自         <code><a href="../classes/BaseEntity.html" target="_self" >BaseEntity</a></code>
</div>
                                </td>
                            </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在         <code><a href="../classes/BaseEntity.html#source" target="_self" >BaseEntity:7</a></code>
</div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="deleteAt"></a>
                        <span class="name">
                            <b>
                                <span class="modifier">Public</span>
                            deleteAt</b>
                            <a href="#deleteAt"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank" >Date</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @DeleteDateColumn({type: &#x27;timestamp&#x27;})<br />
                            </code>
                        </td>
                    </tr>
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-line">继承自         <code><a href="../classes/BaseEntity.html" target="_self" >BaseEntity</a></code>
</div>
                                </td>
                            </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在         <code><a href="../classes/BaseEntity.html#source" target="_self" >BaseEntity:13</a></code>
</div>
                            </td>
                        </tr>


            </tbody>
        </table>
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="updatedAt"></a>
                        <span class="name">
                            <b>
                                <span class="modifier">Public</span>
                            updatedAt</b>
                            <a href="#updatedAt"><span class="icon ion-ios-link"></span></a>
                        </span>
                    </td>
                </tr>
                    <tr>
                        <td class="col-md-4">
                            <i>类型 : </i>        <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank" >Date</a></code>

                        </td>
                    </tr>
                    <tr>
                        <td class="col-md-4">
                            <b>装饰器列表 : </b>
                            <br />
                            <code>
                                @UpdateDateColumn({type: &#x27;timestamp&#x27;})<br />
                            </code>
                        </td>
                    </tr>
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-line">继承自         <code><a href="../classes/BaseEntity.html" target="_self" >BaseEntity</a></code>
</div>
                                </td>
                            </tr>
                        <tr>
                            <td class="col-md-4">
                                    <div class="io-line">被定义在         <code><a href="../classes/BaseEntity.html#source" target="_self" >BaseEntity:10</a></code>
</div>
                            </td>
                        </tr>


            </tbody>
        </table>
</section>







    </div>


    <div class="tab-pane fade  tab-source-code" id="c-source">
        <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ApiExtraModels, ApiProperty, getSchemaPath } from &#x27;@nestjs/swagger&#x27;;
import { CrudValidationGroups } from &#x27;@nestjsx/crud&#x27;;
import { IsNumber, IsOptional, IsString, ValidateNested } from &#x27;class-validator&#x27;;
import {
  Column,
  Entity,
  JoinColumn,
  ManyToMany,
  ManyToOne,
  OneToOne,
  PrimaryGeneratedColumn,
} from &#x27;typeorm&#x27;;
import { EduEnum } from &#x27;./enum/edu.enum&#x27;;
import { PoliticalStatusEnum } from &#x27;./enum/political-status.enum&#x27;;
import { OrgAction } from &#x27;./org-action.entity&#x27;;
import { Village } from &#x27;./village.entity&#x27;;
import { Villager } from &#x27;./villager.entity&#x27;;
import { BaseEntity } from &#x27;./base.entity&#x27;;
import { VillagerInfo } from &#x27;./villager-info.entity&#x27;;

const { CREATE, UPDATE } &#x3D; CrudValidationGroups;

@Entity()
export class PartyMember extends BaseEntity {
  @ApiProperty({
    description: &#x27;党员主键&#x27;,
    required: false,
  })
  @PrimaryGeneratedColumn()
  id?: number;

  @ApiProperty({
    example: 1,
    description: &#x27;所属村&#x27;,
    required: true,
    oneOf: [
      {
        type: &#x27;Number&#x27;,
      },
      {
        $ref: getSchemaPath(() &#x3D;&gt; Village),
      },
    ],
  })
  @ManyToOne(
    () &#x3D;&gt; Village,
    Village &#x3D;&gt; Village.partyMember,
    {
      cascade: true,
    },
  )
  village: Number | Village;

  @ApiProperty({
    example: &#x27;党组织&#x27;,
    description: &#x27;党组织&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @Column()
  partyOrganization: string;

  @ApiProperty({
    example: 1,
    description: &#x27;村民信息&#x27;,
    required: true,
  })
  @ValidateNested({ always: true })
  @Column(() &#x3D;&gt; VillagerInfo)
  villagerInfo: VillagerInfo;

  @ApiProperty({
    example: 1,
    description: &#x27;身份状态&#x27;,
    required: true,
    type: Number,
  })
  @IsNumber({}, { always: true })
  @Column()
  status: PoliticalStatusEnum;

  @ApiProperty({
    example: &#x27;职务&#x27;,
    description: &#x27;职务&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @IsOptional({ always: true })
  @Column({
    nullable: true
  })
  duties: string;

  @ApiProperty({
    example: &#x27;就职单位&#x27;,
    description: &#x27;就职单位&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @IsOptional({ always: true })
  @Column({
    nullable: true
  })
  lnauguralAddress: string;

  @ApiProperty({
    example: &#x27;文化程度&#x27;,
    description: &#x27;文化程度&#x27;,
    required: false,
    type: Number,
  })
  @IsNumber({},{ always: true })
  @IsOptional({ always: true })
  @Column({
    nullable: true
  })
  education: EduEnum;

  @ApiProperty({
    example: &#x27;积极分子时间段&#x27;,
    description: &#x27;积极分子时间段&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @Column()
  periodOfActivists: string;

  @ApiProperty({
    example: &#x27;发展对象时间段&#x27;,
    description: &#x27;发展对象时间段&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @IsOptional({ always: true })
  @Column({
    nullable: true,
  })
  periodOfDevelopmentObject: string;

  @ApiProperty({
    example: &#x27;预备党员时间段&#x27;,
    description: &#x27;预备党员时间段&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @IsOptional({ always: true })
  @Column({
    nullable: true,
  })
  periodOfProbationaryMember: string;

  @ApiProperty({
    example: &#x27;正式党员时间段&#x27;,
    description: &#x27;正式党员时间段&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @IsOptional({ always: true })
  @Column({
    nullable: true,
  })
  periodOfPartyMember?: string;

  @ApiProperty({
    example: &#x27;照片&#x27;,
    description: &#x27;照片&#x27;,
    required: true,
  })
  @IsString({ always: true })
  @Column({
    type: &#x27;text&#x27;,
    nullable: true,
  })
  image: string;

  // @ApiProperty({
  //   example: 1,
  //   description: &#x27;主持的党组织活动&#x27;,
  //   required: false,
  //   type: Number,
  // })
  // @ManyToMany(
  //   () &#x3D;&gt; OrgAction,
  //   OrgAction &#x3D;&gt; OrgAction.actor,
  // )
  // host: OrgAction[];

  // @ApiProperty({
  //   example: 1,
  //   description: &#x27;记录的党组织活动&#x27;,
  //   required: false,
  //   type: Number,
  // })
  // @ManyToMany(
  //   () &#x3D;&gt; OrgAction,
  //   OrgAction &#x3D;&gt; OrgAction.actor,
  // )
  // recorder: OrgAction[];

  // @ApiProperty({
  //   example: 1,
  //   description: &#x27;参与的党组织活动&#x27;,
  //   required: false,
  //   type: Number,
  // })
  // @ManyToMany(
  //   () &#x3D;&gt; OrgAction,
  //   OrgAction &#x3D;&gt; OrgAction.actor,
  //   // {
  //   //   cascade: true
  //   // }
  // )
  // actor: OrgAction[];
}
</code></pre>
    </div>
</div>



                   




                   </div><div class="search-results">
    <div class="has-results">
        <h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
        <ul class="search-results-list"></ul>
    </div>
    <div class="no-results">
        <h1 class="search-results-title">无匹配的结果 "<span class='search-query'></span>"</h1>
    </div>
</div>
</div>
               <!-- END CONTENT -->
           </div>
       </div>

       <script>
            var COMPODOC_CURRENT_PAGE_DEPTH = 1;
            var COMPODOC_CURRENT_PAGE_CONTEXT = 'class';
            var COMPODOC_CURRENT_PAGE_URL = 'PartyMember.html';
            var MAX_SEARCH_RESULTS = 15;
       </script>

       <script src="../js/libs/custom-elements.min.js"></script>
       <script src="../js/libs/lit-html.js"></script>
       <!-- Required to polyfill modern browsers as code is ES5 for IE... -->
       <script src="../js/libs/custom-elements-es5-adapter.js" charset="utf-8" defer></script>
       <script src="../js/menu-wc.js" defer></script>

       <script src="../js/libs/bootstrap-native.js"></script>

       <script src="../js/libs/es6-shim.min.js"></script>
       <script src="../js/libs/EventDispatcher.js"></script>
       <script src="../js/libs/promise.min.js"></script>
       <script src="../js/libs/zepto.min.js"></script>

       <script src="../js/compodoc.js"></script>

       <script src="../js/tabs.js"></script>
       <script src="../js/menu.js"></script>
       <script src="../js/libs/clipboard.min.js"></script>
       <script src="../js/libs/prism.js"></script>
       <script src="../js/sourceCode.js"></script>
          <script src="../js/search/search.js"></script>
          <script src="../js/search/lunr.min.js"></script>
          <script src="../js/search/search-lunr.js"></script>
          <script src="../js/search/search_index.js"></script>
       <script src="../js/lazy-load-graphs.js"></script>


    </body>
</html>
